package com.sgs.preorder.app;

import com.sgs.preorder.domain.dto.CreateOrderCmd;
import com.sgs.preorder.domain.dto.OrderDetailDTO;
import com.sgs.preorder.domain.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Tim_Tian
 * @date 2021/9/9 19:28
 */
@Component
public class ReportAppImpl implements ReportApp {
    @Autowired
    private OrderService orderService;

    @Override
    public OrderDetailDTO getOrderDetail(String orderNo) {
        return orderService.getOrderDetail(orderNo);
    }

    @Override
    public void createOrder(CreateOrderCmd createOrderCmd) {
        //服务编排
        orderService.createOrder(createOrderCmd);
    }
}
